package com.wang.bean;

import lombok.Setter;

/**
 * @Author wangf
 * @Description TODO
 * @Date 2023/9/3 21:23
 */
@Setter
public class PageRequest {
    private Long current=1L;
    private Long size=10L;

    public Long getCurrent() {
        if (current==null||current<1) {
            return 1L;
        }
        return current;
    }
    public Long getSize() {
        if (size==null||size<1) {
            return 10L;
        }
        return size;
    }

}
